package com.onpositive.gamemaker.core;

public class MapCell
{
	protected TerrainType terrainType;
	protected int x;
	protected int y;

	//TODO COMPARE WITH GAME OBJECT 
	public MapCell(TerrainType terrainType, int x, int y)
	{
		this.terrainType = terrainType;
		this.x = x;
		this.y = y;
	}

	/**
	 * @return the terrainType
	 */
	public TerrainType getTerrainType()
	{
		return terrainType;
	}

	/**
	 * @param terrainType the terrainType to set
	 */
	public void setTerrainType(TerrainType terrainType)
	{
		this.terrainType = terrainType;
	}
	
	@Override
	public String toString()
	{
		return terrainType.toString();
	}

	/**
	 * @return the x
	 */
	public int getX()
	{
		return x;
	}

	/**
	 * @param x the x to set
	 */
	public void setX(int x)
	{
		this.x = x;
	}

	/**
	 * @return the y
	 */
	public int getY()
	{
		return y;
	}

	/**
	 * @param y the y to set
	 */
	public void setY(int y)
	{
		this.y = y;
	}
	
	public void setPosition(int x, int y)
	{
		this.x = x;
		this.y = y;
	}
	
}
